package unit.response;

import unit.data.Message;

/**
 * @author Yuri Denison
 * @since 07.08.11
 */
public class IncomingMessage extends ServerMessage {
    private Message message;

    public IncomingMessage(int session, Message message) {
        super(session);
        this.message = message;
    }

    public int getSenderID() {
        return message.getSenderId();
    }

    public Message getMessage() {
        return message;
    }
}
